/**
 * create by young (young2f@outlook.com) on 2021/2/7
 */
'use strict';

module.exports = (webpackConfig, env) => {
  webpackConfig.module.rules.push(
    {test: /\.(js)$/, exclude: /node_modules/,use: {
        loader: 'babel-loader',
        options: {
          presets: ['@babel/preset-env']
        }
      }}
  );
  return webpackConfig;
};



